﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace MiniSched.Orm {

    public class UserProfile : Entity {

        [Required]
        [MinLength(3)]
        [MaxLength(50)]
        public string UserName { get; set; }

        [EmailAddress]
        [DataType(DataType.EmailAddress)]
        public string EmailAddress { get; set; }

        public ICollection<Volunteer> Volunteers { get; set; }

        public ICollection<UserRole> UserRoles { get; set; }
    }
}
